import type { Map } from '#/views/scenes/index';

import { defineStore } from 'pinia';

export const useMapStore = defineStore('map', {
  state: () => {
    return {
      publishMap: {
        userId: '',
        mapId: '',
        mapStyle: '',
        mapUrl: '',
        mapName: '',
        publishTime: '',
        introduction: '',
      } as Map,
    };
  },
  actions: {
    setPublishMap(map: Map) {
      this.publishMap = map;
    },
  },
});
